<?php require_once ("/mnt/sdcard/www/Includes/session.php"); ?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
        <link rel="shortcut icon" href="/favicon.ico">

        <title>Device Management System</title>

        <!-- Bootstrap core CSS -->
        <link href="/css/bootstrap.css" rel="stylesheet">
        <!-- Bootstrap theme -->
        <link href="/css/bootstrap-theme.css" rel="stylesheet">

        <!-- Custom styles for this template -->
        <link href="/css/sticky-footer-navbar.css" rel="stylesheet">
        <link href="/css/theme.css" rel="stylesheet">
        <link href="/css/datepicker.css" rel="stylesheet">

        <script type="text/javascript">
            function checkAllorNot(chk_obj)
            {
                var chk = document.getElementsByName(chk_obj.name);

                if (chk_obj.checked == true)
                {
                    for (i = 1; i < chk.length; i++)
                    {
                        chk[i].checked = true;
                    }
                }
                else
                {
                    for (i = 1; i < chk.length; i++)
                    {
                        chk[i].checked = false;
                    }
                }
            }

            function checkAll()
            {
                var obj = document.manage;

                if (obj.chkAll.checked)
                {
                    for (var i = 0; i < obj.checkbox.length; i++)
                    {
                        obj.checkbox[i].checked = true;
                    }
                }
                else
                {
                    for (var i = 0; i < obj.checkbox.length; i++)
                    {
                        obj.checkbox[i].checked = false;
                    }
                }
            }

            function submitForm(action)
            {
                document.getElementById('form2').action = action;
                document.getElementById('form2').submit();
            }
        </script>
    </head>
    <body>